package org.judo.test.controllers;

import org.judo.controller.PageController;
import org.judo.database.Database;
import org.judo.propertyobject.PropertyObject;
import java.util.*;

public class Message extends PageController 
{
	private Database appDB ;
	private int result ;
	private int num1 ;
	private int num2 ;

	public void hello() throws Exception
	{
	}

	public void setResult(int result) 
	{
		this.result = result;
	}

	public int getResult() 
	{
		return this.result;
	}

	public void add() throws Exception
	{
		showPage("/message/hello.do");
		result = num1 + num2;
	}

	public void setNum1(int num1) 
	{
		this.num1 = num1;
	}

	public int getNum1() 
	{
		return this.num1;
	}

	public void setNum2(int num2) 
	{
		this.num2 = num2;
	}

	public int getNum2() 
	{
		return this.num2;
	}

}
